using Net35.Xrm.Sdk;
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Net35.Crm.Sdk.Messages
{
	[DataContract(Namespace = "http://schemas.microsoft.com/crm/2011/Contracts")]
	public sealed class AttributeAuditDetail : AuditDetail
	{
		private Dictionary<int, string> _deletedAttributes;
		private DataCollection<string> _invalidNewValueAttributes;
		[DataMember]
		public Entity OldValue
		{
			get;
			set;
		}
		[DataMember]
		public Entity NewValue
		{
			get;
			set;
		}
		[DataMember]
		public DataCollection<string> InvalidNewValueAttributes
		{
			get
			{
				if (this._invalidNewValueAttributes == null)
				{
					this._invalidNewValueAttributes = new DataCollection<string>();
				}
				return this._invalidNewValueAttributes;
			}
		}
		[DataMember(Order = 60)]
		public Dictionary<int, string> DeletedAttributes
		{
			get
			{
				if (this._deletedAttributes == null)
				{
					this._deletedAttributes = new Dictionary<int, string>();
				}
				return this._deletedAttributes;
			}
		}
	}
}
